package com.majun.customstarter.service;

import com.majun.customstarter.config.WeatherSource;

// 4) 步骤4,写一个类用来对外提供服务
public class WeatherService {

    private WeatherSource weatherSource;

    public WeatherService(WeatherSource weatherSource) {
        this.weatherSource = weatherSource;
    }

    public String getType() {
        return weatherSource.getType();
    }

    public String getRate() {
        return weatherSource.getRate();
    }

}